package operation;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-10-29
 * Time:20:20
 */
public class DisplayOperation implements IOPeration{

    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int size = bookList.getUsedSize();
        for (int i = 0; i < size; i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}
